The Power of the Dependencies

We cannot discuss data modeling without talking about normalization and functional dependencies. We already illustrated the mechanics of the process of
normalization in chapter 2. The objectives of eliminating malformed relational data designs are (roughly) these:
  • Reduce redundancy
  • Avoid update anomalies
  • Avoid information loss.
To get a feel for the approach that one could call “Relational Data Modeling Classic,” let us quickly review orthodox normalization by way of a famous example. This example appeared as a complimentary poster in the Database Programming & Design Magazine published by Miller Freeman back in 1989. The intellectual rights belong to Marc Rettig, now of Fit Associates. It is included here with his kind permission - take time to look it over, it is worth the effort.
The starting point of his example is the list of non-normalized data Items for puppies:
  • Puppy Number
  • Puppy Name
  • Kennel Code
  • Kennel Name
  • Kennel Location
  • Trick ID 1..n
  • Trick Name 1..n
  • Trick Where Learned 1..n
  • Skill Level 1..n
There are 5 steps in the canonical procedure:
  1. Eliminate repeating groups
  2. Eliminate redundant data
  3. Eliminate columns not dependent on the key
  4. Isolate independent multiple relationships
  5. Isolate semantically related multiple relationships
Each of these steps correspond to the 5 "normal forms", which together make up the normalization method. At no point in the process visualization other than showing tables with columns is used.
Looking at the 5 rules it is evident that the processes are driven be the dependencies (between two concepts, really). It is also evident that there are two classes of dependencies / relationships:
  • Intra-table dependencies, which is the classic functional dependency of properties, which "hang off" the key of some some object (type) identified by that key (color of a product, for example) , and
  • Inter-table dependencies, where some object (type) is "pointing" to the key of another object (type), such as an employee working in a department.
The power of the dependencies is that they drive the structure of the area being looked at.

Normalization by way of Visualization

Things would definitely be easier if the starting point was not a list of fields, but instead a concept map:
Stacks Image 113
The way we arrive at a concept map like the above is based on the semantics (meaning) of the linking phrases. Some linking phrases determine a simple dependency (like “has”) on the unique identification of the object it is a property of. Other linking phrases contain action verbs meaning that they signify intra-object relationships (like puppy can do puppy trick).
It is obvious that depicting the dependencies as a directed graph gives a deep understanding of the functional dependency structure.

Given that graph visualization is the way forward (as argued so far in this book), is there anything we can carry forward from normalization?

The answer is simple: identity and uniqueness. These two things contribute hugely to setting the context in precise ways.

Read the Graph Data Modeling book for complete and comprehensive guidelines.
Check out this free webinar: Graph Data Modeling in Four Dimensions
You may follow the sequence or explore the site as you wish:

You could also take a look at the book about Graph Data Modeling:
Stacks Image 72
RapidWeaver Icon

Made in RapidWeaver